/**** NAV MENU DROPDOWNS ***/
$(document).ready(function()  {
	$("#nav li").each(function(){ 
		this.onmouseover = function() { 
			if (this.className.match("parent") != null) {
				this.className += " both";
			} 
			this.className += " active";
		}
		this.onmouseout = function(e) {
			this.className = this.className.replace(/active/g,"");
			this.className = this.className.replace(/both/g,"");
		}
		if (this.className.match("parent") != null) {
			var navMenuTop = document.createElement('span');
			navMenuTop.className = "navMenuTop";
			this.getElementsByTagName('ul')[0].appendChild(navMenuTop);
			var navMenuBottom = document.createElement('span');
			navMenuBottom.className = "navMenuBottom";
			this.getElementsByTagName('ul')[0].appendChild(navMenuBottom);			
		} 			
	});
})
/*******/
 
